package cn.xutongxue.gtms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 文件附件表
 * @TableName sys_file
 */
@TableName(value ="sys_file")
@Data
public class File implements Serializable {
    /**
     * 上传附件ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 文件名
     */
    @TableField(value = "filename")
    private String filename;

    /**
     * 文件存储相对路径/绝对路径
     */
    @TableField(value = "path")
    private String path;

    /**
     * 文件类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 存储方式 0-本地 1-腾讯COS
     */
    @TableField(value = "store")
    private String store;

    /**
     * 上传人ID
     */
    @TableField(value = "uploader")
    private Long uploader;

    /**
     * 逻辑删除 0-未删除 1-已删除
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}